package com.firmboy.demo.hello;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 测试指定配置文件
 *
 * @author firmboy
 * @create 2018-03-12 上午10:41
 **/
@PropertySource(value = "classpath:test.properties")
@Configuration
@ConfigurationProperties(prefix = "com.firmboy")
public class User {

    private String name;

    private String age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
